{% extends "base.html" %} # 继承base.html

{% block content %}
 <div class="container">
   <h1>上传图片</h1>
   <hr>
   <form class="form-inline" action="{{ url_for('index') }}" method="post" enctype="multipart/form-data">
     <div class="form-group">
       <input type="file" name="file" class="btn btn-default">
     </div>
     <div class="form-group">
       <input type="submit" value="Upload" class="btn btn-default">
     </div>
   </form>
 </div>

{% endblock %}